@extends('default.mobile.layouts.personalPublic')
@section('title','刷新简历-'.Site::get('webname'))
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/personal/common.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/mobile/jquery/select.css')}}">
@endsection

{{--头部标签--}}
@section('tag','刷新简历')
@section('link') href="{{url('mobile/personal/my_resume')}}" @endsection

{{--主体内容--}}
@section('content')
    <div class="fill" id="fill" style="overflow: hidden">
        <div class="form_info" id="form_info">
            <form action="{{url('mobile/personal/post_resume_refresh')}}" onsubmit="return checkResumeRefresh('#resumeRefreshForm')"
                  method="post" id="resumeRefreshForm" name="resumeRefreshForm">
                {{csrf_field()}}
                <input type="hidden" name="id" value="{{ $resume->id }}" id="id" />
                <dl class="arrow" id="work_year_select">
                    <input type="hidden" name="work_year" value="{{ $resume->work_year }}" id="work_year" />
                    <dt>工作经验</dt>
                    <dd><span class="select_text">请选择工作经验</span></dd>
                </dl>
                <dl>
                    <dt>手机号码<span class="asterisk">*</span></dt>
                    <dd><input type="text" name="mobile" id="mobile"  value="{{ $resume->mobile }}" placeholder="请输入手机号码"  autocomplete="off"></dd>
                </dl>
                <dl class="arrow" id="job_status_select">
                    <input type="hidden" name="job_status" value="{{ $resume->job_status }}" id="job_status" />
                    <dt>求职状态</dt>
                    <dd><span class="select_text">请选择求职状态</span></dd>
                </dl>
                <dl>
                    <dt>邮箱地址<span class="asterisk">*</span></dt>
                    <dd><input type="text" name="email" id="email"  value="{{ $resume->email }}" placeholder="请输入邮箱地址"  autocomplete="off"></dd>
                </dl>
                <dl>
                    <dt>QQ号码</dt>
                    <dd><input type="text" name="qq" id="qq"  value="{{ $resume->qq }}" placeholder="请输入QQ号码" autocomplete="off"></dd>
                </dl>
                <dl>
                    <dt>详细地址</dt>
                    <dd><input type="text" name="address" id="address"  value="{{ $resume->address }}" placeholder="请输入详细地址" autocomplete="off"></dd>
                </dl>
                <dl class="arrow" id="uptype_select">
                    <input type="hidden" name="uptype" value="1" id="uptype" />
                    <dt>刷新方式</dt>
                    <dd><span class="select_text">请选择刷新方式</span></dd>
                </dl>
                <div class="form_sub"><input type="submit" value="刷新"></div>
            </form>
        </div>
    </div>
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/mobile/jquery/jquery.select.js')}}"></script>
    <script type="text/javascript" src="{{Resources::jsOption('resume')}}"></script>
    <script type="text/javascript" src="{{asset('/default/js/mobile/personal/my_resume.js')}}"></script>

    <script>
    $(function(){
        var fill = $("#fill").find('#form_info');
        //工作经验
        fill.find("#work_year_select").select({
            select_title:'工作经验',                //标题值
            hidden: '#work_year',                   //select隐藏表单值
            opt_data:option_work_year               //select选项值（数组json对象）
        });
        //工作经验
        fill.find("#job_status_select").select({
            select_title:'求职状态',                //标题值
            hidden: '#job_status',                   //select隐藏表单值
            opt_data:option_job_status               //select选项值（数组json对象）
        });
        var option_uptype = [{text:'刷新简历并更新联系方式',value:1},{text:'只更新联系方式',value:2}];
        fill.find("#uptype_select").select({
            select_title:'刷新方式',                //标题值
            hidden: '#uptype',                   //select隐藏表单值
            opt_data:option_uptype               //select选项值（数组json对象）
        });
    });
    </script>
@endsection